using System.Globalization;
using System.Windows.Data;

namespace HelpDeskTool.Converters;

public class ImageStatusConverter : IValueConverter
{
	public object? Convert(object value, Type targetType, object parameter, CultureInfo culture)
	{
		if (value is not bool status)
			return null;

		return status
			? Properties.Resources.offline
			: null;
	}

	public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
	{
		throw new NotImplementedException();
	}
}
